-- GENERATED SPELL FOR [Grimtotem Stomper] --


function spell0_10759(pUnit, Event) --@Earth Shock,n/a--
pUnit:FullCastSpellOnTarget(13281,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10759', 2262, 1)
end

function spell1_10759(pUnit, Event) --@Healing Ward,Self--
pUnit:FullCastSpellOnTarget(5605,pUnit)
pUnit:RegisterEvent('Sorts_10759', 32000, 1)
end

function Sorts_10759(pUnit, Event)
local choix_sorts_10759 = math.random(0, 1)
if choix_sorts_10759 == 0 then
pUnit:RegisterEvent('spell0_10759', 1, 1)
end
if choix_sorts_10759 == 1 then
pUnit:RegisterEvent('spell1_10759', 1, 1)
end
end

function mob10759_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10759', math.random(1500, 3000), 1)
end

function mob10759_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10759_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10759_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10759, 1, 'mob10759_Action')
RegisterUnitEvent(10759, 2, 'mob10759_Leave')
RegisterUnitEvent(10759, 3, 'mob10759_Kill')
RegisterUnitEvent(10759, 4, 'mob10759_Die')
